package com.itcast.demoone.model

data class BaseResponse<T>(
    val code: Int,
    val data: T? =  null,
    val message: String
)


// 1. 频道
data class Channel(
    val id: Int,
    val name: String
)

// 2. 频道列表
data class ChannelList(
    val channels: List<Channel>
)

typealias ChannelResponse = BaseResponse<ChannelList>


// 2. 登录相关
data class LoginRequest(
    val username: String,
    val password: String
)

data class UserData(
    val token: String
)
typealias LoginResponse = BaseResponse<UserData>

